package com.spring.design.Objectadapter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 适配器克模式：SpringMVC中的HandlerAdapter使用到了
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("-------对象适配器模式------");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter(new Voltage220V()));




    }

}
